<!--包含头部文件-->
{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 商品管理 <span class="c-gray en">&gt;</span> 商品详情 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">
	<form class="form form-horizontal form-o2o-add" id="form-o2o-add" method="post" action="{:url('goods/save')}">
		<table class="table">
			<tbody>
				<tr>
					<th class="text-r" width="80">商品品牌：</th>
					<td><input type="text" class="input-text text-l" name="brand" value="{$info->brand}" style="width: 200px;"></td>
				</tr>
				<tr>
					<th></th>
					<td><img src="{$info->picture}" height="60" alt=""></td>
				</tr>
				<tr>
					<th class="text-r" width="80">商品名：</th>
					<td><input type="text" class="input-text text-l" name="gname" value="{$info->gname}" style="width: 200px;"></td>
				</tr>
				<tr>
					<th class="text-r">所属分类：</th>
					<td>
						<span class="select-box" style="width:150px">
							<select class="select firstId" name="category1_id" size="1">
								<option value="0" selected>一级分类</option>
								{volist name="types" id="vo"}
									<option value="{$vo.id}" {if condition="$firstId eq $vo.id"} selected="selected"{/if}>---{$vo.name}</option>
								{/volist}
							</select>
						</span>
						<span class="select-box" style="width:150px">
							<select class="select secType" name="category2_id" size="1">
								<option value="0" selected>二级分类</option>
								{volist name="secType" id="vo"}
									<option value="{$vo.id}" {if condition="$secondId eq $vo.id"} selected="selected"{/if}>---{$vo.name}</option>
								{/volist}
							</select>
						</span>
					</td>
				</tr>
				<tr>
					<th class="text-r">市场价：</th>
					<td><input type="text" class="input-text text-c"  value="{$info->market_price}" name="market_price" style="width: 50px;"></td>
				</tr>
				<tr>
					<th class="text-r">价格：</th>
					<td><input type="text" class="input-text text-c"  value="{$info->price}" name="price" style="width: 50px;"></td>
				</tr>
				<tr>
					<th class="text-r">库存：</th>
					<td><input type="text" class="input-text text-c" value="{$info->stock}" name="stock" style="width: 50px;"></td>
				</tr>
				<tr>
					<th class="text-r">销量：</th>
					<td>{$info->sales}</td>
				</tr>
				<tr>
					<th class="text-r">上架时间：</th>
					<td>{$info->create_time}</td>
				</tr>
				<tr>
					<th class="text-r" style="vertical-align: top;">商品详情：</th>
					<td>
						<textarea name="description" id="" style="vertical-align: top;width: 500px;height: 80px;">{$info->description}</textarea>
					</td>
				</tr>
			</tbody>
		</table>
		<input type="hidden" name="id" value="{$info->id}">
		<button  type="submit" class="btn btn-primary radius" style="margin-left: 30px;margin-top: 10px;" ><i class="Hui-iconfont">&#xe632;</i> 保存</button>
	</form>
</div>

<!--包含尾部文件-->
{include file="public/footer" /}
{load href="__STATIC__/admin/js/common.js" /}
<script>
var SCOPE = {
	'secondType_url': "{:url('type/getSecondType')}",
  };	
</script>

</body>
</html>